package com.rm.vip.mq.demo.receiver;

import org.apache.xbean.spring.context.ClassPathXmlApplicationContext;
import org.junit.Test;
import org.springframework.context.ApplicationContext;

/**
 * @ProjectName: mq-demo
 * @Auther: GERRY
 * @Date: 2019/2/25 21:41
 * @Description:
 */
public class QueueConsumer {
    @Test
    public void testQueueConsumer() throws Exception {
        //初始化spring容器
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("consumer/activemq-spring-receiver.xml");
        //等待
        System.in.read();
    }
}
